package com.daiTest.Service.Impl;

import com.daiTest.Mapper.EmployeeMapper;
import com.daiTest.pojo.Employee;
import com.daiTest.Service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    /**
     * 查询所有员工信息
     */
    @Override
    public List<Employee> findAll() {
        List<Employee> employeeList = employeeMapper.queryAll();
        return employeeList;
    }
}
